package com.ss.android.newmedia.d;

import android.content.Context;
import com.bytedance.article.common.c.TTUtils;
import com.bytedance.frameworks.baselib.network.http.util.d;
import com.bytedance.frameworks.baselib.network.http.util.TaskInfo;
import com.ss.android.image.BaseImageManager;
import com.ss.android.image.j;
import com.ss.android.image.m;
import com.ss.android.newmedia.BaseAppData;

public final class e implements j {
    private static e a;

    static {
        e.a = new e();
    }

    public e() {

    }

    public static void a() {
        m.a().a = e.a;
    }

    public final int a(int arg1, boolean arg2) {
        return arg1;
    }

    public final int a(BaseImageManager imageMgr) {
        return BaseAppData.inst().a(imageMgr);
    }

    public final long a(Context context) {
        return BaseAppData.inst().mClearCacheTime;
    }

    public final void a(Context context, long clearCacheTime) {
        BaseAppData.inst().mClearCacheTime = clearCacheTime;
    }

    public final boolean downloadImage(Context context, int arg3,
                                       String arg4, String arg5,
                                       String arg6, String arg7,
                                       String arg8, d arg9,
                                       TaskInfo taskInfo) throws Throwable {
        return com.ss.android.newmedia.util.AppUtil.downloadImage(context, arg3, arg4, arg5, arg6, arg7, arg8, arg9, taskInfo);
    }

    public final boolean downloadImage(Context context, int arg3,
                                       String arg4, String arg5,
                                       String arg6, String arg7,
                                       String arg8, d arg9, String arg10,
                                       TaskInfo taskInfo) throws Throwable {
        return com.ss.android.newmedia.util.AppUtil.downloadImage(context, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, taskInfo);
    }

    public final boolean isValidUrl(String url) {
        return TTUtils.isValidUrl(url);
    }
}

